package com.dodoke.domain;


import com.dodoke.common.core.domain.BaseEntity;
import com.dodoke.validateGroup.OnAdd;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@ApiModel("二维码-商品对应的实体类")
public class WxQrGoods extends BaseEntity {

  // 主键id
  @Null
  private long id;
  // 二维码id
  @NotNull(message = "二维码id不允许为空",groups = {OnAdd.class})
  @ApiModelProperty(name = "qrId",value = "二维码id")
  private long qrId;
  // 商品id
  @NotNull(message = "商品id不允许为空",groups = {OnAdd.class})
  @ApiModelProperty(name = "goodsId",value = "商品id")
  private long goodsId;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getQrId() {
    return qrId;
  }

  public void setQrId(long qrId) {
    this.qrId = qrId;
  }

  public long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(long goodsId) {
    this.goodsId = goodsId;
  }

}
